﻿using System.Net;

namespace netCoreStudy.Entities.Base
{
	public class ResMsg
	{
		public ResMsg(bool response = true, string msg = "成功", int code = 200)
		{
			Response = response;
			Code = code;
			Msg = msg;
		}

		public int Code { get; set; }
		public string Msg { get; set; }
		public bool Response { get; set; }
	}

	public class ResMsg<T>
	{
		public ResMsg(T response, bool success = true, string msg = "成功", int code = 200)
		{
			Code = code;
			Msg = msg;
			Response = response;
			Success = success;
		}

		public bool Success { get; set; }
		public int Code { get; set; }
		public string Msg { get; set; }
		public T Response { get; set; }
	}
}